<div id="titleTop" style="padding-top: 9px;">
	<div class="titleTop-icon">	</div>
	<div align="left">
		<?php if(!empty($this->errMsg)) :?>
			<span id="err"><?php echo $this->errMsg; ?></span>
		<?php endif; ?>
	</div>
	<div class="titleTop-title"><?php echo $this->lang_data->_($this->title); ?></div>	
	<div class="clearDiv"></div>
</div>
<div id="form">
<form method="post" action="<?php echo $this->baseUrl ?>/backend/auth/changepw">
<div  style="padding-left: 20px; float: left;"> 
<table border="0">
  <tr>
    <td align="left"><?php echo $this->lang_data->_('Current password'); ?>:</td>
    <td align="left" width="262"><input type="password" name="txtCurrentPass" id="txtCurrentPass" maxlength="64"/> <font color="red">*</font></td>
  </tr> 
  <tr>
    <td align="left"><?php echo $this->lang_data->_('New password'); ?>:</td>
    <td align="left"><input type="password" name="txtNewPass" id="txtNewPass" maxlength="64"/> <font color="red">*</font></td>
  </tr>
  <tr>
    <td align="left"><?php echo $this->lang_data->_('Confirm new password'); ?>:</td>
    <td align="left"><input type="password" name="txtConfirmPass" id="txtConfirmPass" maxlength="64"/> <font color="red">*</font></td>
  </tr>
  <tr>
    <td align="left">&nbsp;</td>
    <td align="left"><input type="button" class="button" name="button" id="button" value="<?php echo $this->lang_data->_('Save'); ?>" /> &nbsp;&nbsp;
      <input type="button" class="button" name="button2" id="button2" value="<?php echo $this->lang_data->_('Back'); ?>" onclick="window.location='<?php echo  $this->baseUrl . '/backend/account';  ?>'"/></td>
  </tr>
</table>
</div>
</form>
</div>
<script type="text/javascript">
$('#button').click(function(){

    if (isWhitespace($('#txtNewPass').val()))
    {
        alert("Mật khẩu mới không thể bỏ trống");
        return false;
    }
    else if(haveSpecialChars($('#txtNewPass').val()))
    {
        alert("Mật khẩu không thể có ký tự đặc biệt");
        return false;
    }

    if($('#txtNewPass').val() != $('#txtConfirmPass').val())
    {
        alert("Mật khẩu xác nhận không khớp.");
        return false;
    }

    $('form').submit();
})
</script>